[FORMAT "WCOFF"]
[INSTRSET "i486p"]
[BITS 32]
[FILE "api011.nas"]

    GLOBAL _api_initmalloc

[SECTION .text]

_api_initmalloc:    ; void api_initmalloc(void);
    push ebx
    mov edx, 11
    mov ebx, [cs:0x0020]    ; malloc内存空间的地址
    mov eax, ebx
    add eax, 32*1024        ; 加上32KB
    mov ecx, [cs:0x0000]
    sub ecx, eax
    int 40h
    pop ebx
    ret
